/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_loading_address.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.tb_discharge_cargo_address.entity.TbDischargeCargoAddress;
import com.thinkgem.jeesite.modules.tb_loading_address.entity.TbLoadingAddress;
import com.thinkgem.jeesite.modules.tb_loading_address.dao.TbLoadingAddressDao;

/**
 * 装货地址管理Service
 * @author ZhangYangZe
 * @version 2017-05-13
 */
@Service
@Transactional(readOnly = true)
public class TbLoadingAddressService extends CrudService<TbLoadingAddressDao, TbLoadingAddress> {
	/**
	 * 获取单条数据
	 * @param String
	 * @return TbLoadingAddress
	 */
	public TbLoadingAddress get(String id) {
		return super.get(id);
	}
	/**
	 * 查询列表数据
	 * @param String
	 * @param TbLoadingAddress
	 * @return List<TbLoadingAddress>
	 */
	public List<TbLoadingAddress> findList(TbLoadingAddress tbLoadingAddress) {
		return super.findList(tbLoadingAddress);
	}
	/**
	 * 查询列表数据
	 * @param Page<TbLoadingAddress>
	 * @return Page<TbLoadingAddress>
	 */
	public Page<TbLoadingAddress> findPage(Page<TbLoadingAddress> page, TbLoadingAddress tbLoadingAddress) {
		return super.findPage(page, tbLoadingAddress);
	}
	/**
	 * 保存数据（插入或更新）
	 * @param TbLoadingAddress
	 */
	@Transactional(readOnly = false)
	public void save(TbLoadingAddress tbLoadingAddress) {
		super.save(tbLoadingAddress);
	}
	/**
	 * 删除装货的地址
	 * @param TbLoadingAddress
	 * @param RedirectAttributes
	 * @return String
	 */
	@Transactional(readOnly = false)
	public void delete(TbLoadingAddress tbLoadingAddress) {
		super.delete(tbLoadingAddress);
	}
	/**
	 * 装货的地址详情
	 * @param String
	 * @return ArrayList<TbLoadingAddress>
	 */
	public ArrayList<TbLoadingAddress> loadingAddressDetails(String id){
		return dao.loadingAddressDetails(id);
	}
}